package book.security;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;

public class KeyStoreTest {

	public static void main(String[] args) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException {
		
		KeyStore store = KeyStore.getInstance(KeyStore.getDefaultType());
		store.load(new FileInputStream("/Users/apple/Documents/demo.keystore"), "123456".toCharArray());
		System.out.println(store.size());
	}
}
